package com.xingkeduo.pojo.enums;

import lombok.Getter;

@Getter
public enum HairstyleSelectServQuery {
    Man("barber","4") , //barber
    Bang("bang","2") ; //刘海

    private String key;

    private String value;
    HairstyleSelectServQuery(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getValue(String key){
        for (HairstyleSelectServQuery s : HairstyleSelectServQuery.values())
            if(s.key.equals(key)){
                return s.getValue();
            }
        return null;
    }
}
